import type { AxiosResponse } from "axios";
import type { RepositoryBranch } from "../types/projectTypes";
import request from "../utils/request";

const baseUrl = '/api/projects';

export function getBranches(projectId:number): Promise<AxiosResponse<RepositoryBranch[]>> {
    return request.get(`${baseUrl}/${projectId}/repository/branches`);
}
